const mongoose = require('mongoose');
const Schema = mongoose.Schema;


var date = new Date()
var mydate = date.toLocaleString()

// Create Schema
const messageSchma = new Schema({


  name: {
    type: String
  },
  describe: {
    type: String
  },
  date: {
    type: String,

    default: mydate,

  }
});

module.exports = message = mongoose.model('message', messageSchma);